/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//hello
package services;

import objects.FileInfo;

/**
 *
 * @author ntfsbk
 */
public class MyFile extends FileInfo {

    private boolean isComplete = false;
    private float completeData = 0;
    private String pathName=new String();

    public MyFile() {
        super();
    }

    public MyFile(FileInfo file) {
        /*
         * private int fileId; private String userId; private String fileName;
         * private float fileSize; private String fileLocation; private String
         * fileDescription;
         */
        try {
            setFileId(file.getFileId());
            setFileName(file.getFileName());
            setFileSize(file.getFileSize());
            setUserId(file.getUserId());
            setFileDescription(file.getFileDescription());
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

    public void setIsComplete(boolean complete) {
        isComplete = complete;
    }

    public Boolean isComplete() {
        return isComplete;
    }

    public void setCompleteData(float percent) {
        completeData = percent;
    }

    public float getCompleteData() {
        return completeData;
    }
    
    public void  setPathName(String Path){
        this.pathName=Path;
    }
    
    public String getPathName(){
        return pathName;
    }
}
